% TEST_ID: LANG-EXPAND-0039
% CATEGORY: language/array-ops/ops
% 测试 | 运算符

function test_or
    A = logical([0, 1, 0, 1]);
    B = logical([1, 1, 0, 0]);
    assert(isequal(A | B, [1 1 0 1])); % Test logical OR operation
    assert(isequal(A | false, A)); % Test OR with false
    assert(isequal(A | true, true(1, numel(A)))); %
end

